﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>China air sales system</title>
    <link rel="stylesheet" type="text/css" href="<?=site_url("css/admin.css")?>" />
    <link rel="stylesheet" type="text/css" href="<?=base_url()?>css/default.css" />
    <script type="text/javascript" src="<?=base_url()?>js/jquery-1.4.4.min.js"></script>    
    <script type="text/javascript" src="<?=base_url()?>js/validator.js"></script>
    <script type="text/javascript">
	if(window.top!=window)
	{
		window.top.location="<?=site_url('admin/home')?>"	
	}
	
    </script>

</head>
<body>
<div style="width:100%;height:100%" class="loginbg">
<table id="__01" style="margin:0 auto;" width="1005"  border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="2">
			<img src="<?=site_url("images/login_01.gif");?>" width="328" height="119" alt=""></td>
		<td>
			<img src="<?=site_url("images/login_02.gif");?>" width="336" height="119" alt=""></td>
		<td rowspan="2">
			<img src="<?=site_url("images/login_03.gif");?>" width="340" height="204" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif");?>" width="1" height="119" alt=""></td>
	</tr>
	<tr>
		<td rowspan="3">
			<img src="<?=site_url("images/login_04.gif");?>" width="198" height="404" alt=""></td>
		<td colspan="2" valign=top rowspan="3" style="background:url(<?=site_url("images/login_05.gif")?>) no-repeat" width="466" height="404">
		<form name=fm id="formlogin" method=post action="<?=site_url('admin/home/do_adminlogin')?>" onsubmit="return CheckFormSubmit(this);" >
		<table border=0 style="margin:20px 0 0 7px" width=100% >
			<tr>
				<td colspan=3 style="padding-left:20px;width:442px" ><img src="<?=site_url("images/logoa.gif")?>" /></td>
			</tr>
			<tr height=30 >
				<td colspan=3 ></td>
			</tr>
			<tr height=50 >
				<td width=60></td>
				<td colspan=2><img src="<?=site_url("images/A01.gif")?>" /></td>
			</tr>
			<tr height=35 >
				<td></td>
				<td align=right><span class=homeText>user account:</span></td>
				<td><input type="text" value="root" name="agentname" verify="M" desc="user account " class="txe" ></td>
			</tr>
			<tr height=35 >
				<td></td>
				<td align=right><span class=homeText>user password:</span></td>
				<td><input class="txe" type="password" value="admin" verify="M" desc="user password " name="agentpassword"  ></td>
			</tr>
			
			<tr height=35 >
				<td></td>
				<td align=right><span class=homeText>check code:</span></td>
				<td><input type="text"  name="CheckCode" AUTOCOMPLETE=off verify="M" desc="Check Code " style="width:60px;float:left;margin-right:5px" maxlength=6 class="txe" required="true" >
					<img src="<?php echo site_url('user/yzm_img1')?>" id="ivrLoginVerifier" style="float:left" onclick="change_yzm1(this)" />
					<span id="cvlLoginVerifier" style="color: Red;display:none; float: left; margin-right: 5px;">check code error</span>
				</td>
			</tr>
			<tr height=30 >
				<td colspan=3 ></td>
			</tr>
			<tr height=25 >
				<td></td>
				<td></td>
				<td><input type="submit" value="submit" class="btnl" /></td>
			</tr>
			
		</table>	
		</form>	
		
		</td>
		<td>
			<img src="<?=site_url("images/sp01.gif");?>" width="1" height="85" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="<?=site_url("images/login_06.gif");?>" width="340" height="133" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif");?>" width="1" height="133" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="<?=site_url("images/login_07.gif");?>" width="340" height="186" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif");?>" width="1" height="186" alt=""></td>
	</tr>
	
	<tr>
		<td>
			<img src="<?=site_url("images/sp01.gif");?>" width="198" height="1" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif");?>" width="130" height="1" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif");?>" width="336" height="1" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif");?>" width="340" height="1" alt=""></td>
		<td></td>
	</tr>
</table>


</div>
<script language="javascript">
		
	var msg = '<?php echo $error_msg; ?>';
	
	$(document).ready(function() {
		if (msg != 0){
			switch (msg){
				case 'Password_Error' : $('#cvlLoginVerifier').empty().text('User name or password mistake ').show();break;
				case 'verifier1' : $('#cvlLoginVerifier').show();break;
				case 'customer' : $('#cvlLoginUser').show();break;
				default : break;
			}
		}		
	});


	function change_yzm1(obj)
	{
	
	    $(obj).attr('src','<?php echo site_url('user/yzm_img1')?>'+'/'+Math.random());
	}
	
	</script>
</body>
</html>